package com.ruoyi.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 提醒执行记录对象 reminder_logs
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
public class ReminderLogs  {

    /** 记录唯一标识符 */
    private Long id;

    /** 关联的任务ID（tasks.id） */
    @Excel(name = "关联的任务ID", readConverterExp = "t=asks.id")
    private Long taskId;

    /** 推送接收用户ID（关联users.id） */
    @Excel(name = "推送接收用户")
    private Long userId;

    /** 推送消息ID */
    @Excel(name = "推送消息ID")
    private String messageId;

    /** 接收设备ID */
    @Excel(name = "接收设备ID")
    private String deviceId;

    /** 计划提醒时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "计划提醒时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date scheduledTime;

    /** 提醒发送状态 */
    @Excel(name = "提醒发送状态")
    private String status;

    /** 任务完成状态 */
    @Excel(name = "任务完成状态")
    private String completionStatus;

    /** 任务完成人（关联users.id） */
    @Excel(name = "任务完成人", readConverterExp = "关=联users.id")
    private Long completedBy;

    /** 任务完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "任务完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completedAt;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setScheduledTime(Date scheduledTime) {
        this.scheduledTime = scheduledTime;
    }

    public Date getScheduledTime() {
        return scheduledTime;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setCompletionStatus(String completionStatus) {
        this.completionStatus = completionStatus;
    }

    public String getCompletionStatus() {
        return completionStatus;
    }

    public void setCompletedBy(Long completedBy) {
        this.completedBy = completedBy;
    }

    public Long getCompletedBy() {
        return completedBy;
    }

    public void setCompletedAt(Date completedAt) {
        this.completedAt = completedAt;
    }

    public Date getCompletedAt() {
        return completedAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("taskId", getTaskId())
                .append("userId", getUserId())
                .append("messageId", getMessageId())
                .append("deviceId", getDeviceId())
                .append("scheduledTime", getScheduledTime())
                .append("status", getStatus())
                .append("completionStatus", getCompletionStatus())
                .append("completedBy", getCompletedBy())
                .append("completedAt", getCompletedAt())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .toString();
    }
}
